package br.com.serjaum.modelo;

import java.io.Serializable;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;



@Entity
@Table (name="matriculaciones", uniqueConstraints = {@UniqueConstraint(columnNames= {"dni", "cod_curso"})})
public class Matricula implements Serializable {

	private static final long serialVersionUID = 3070122637273027086L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="matricula_id")
	
	private long matricula_id;
	
	public long getMatricula_id() {
		return matricula_id;
	}

	public void setMatricula_id(long matricula_id) {
		this.matricula_id = matricula_id;
	}

	public String getDniMatricula() {
		return dniMatricula;
	}

	public void setDniMatricula(String dniMatricula) {
		this.dniMatricula = dniMatricula;
	}

	public String getCodigoCursoMatricula() {
		return codigoCursoMatricula;
	}

	public void setCodigoCursoMatricula(String codigoCursoMatricula) {
		this.codigoCursoMatricula = codigoCursoMatricula;
	}

	@Column(name="dni")
	private String dniMatricula;  
	
	@Column(name="cod_curso")
	private String codigoCursoMatricula; 
	
	@Column(name="f_alta")
	private String fechaAlta; 
	
	 @Column(name="rol")
	private String rol;


	public String getFechaAlta() {
		return fechaAlta;
	}

	public void setFechaAlta(String fechaAlta) {
		this.fechaAlta = fechaAlta;
	}

	public String getRol() {
		return rol;
	}

	public void setRol(String rol) {
		this.rol = rol;
	}
	
	
}


